界面本地化
概述
UI字体大小
浏览器字体
最近记录
时间
地点
省市数据库
WebUI
Grid列宽
\* 曾经有一个客户说,看到实体字段很不爽 *\
\* 对于访问级别 org ,client ,org+client,字段client无需显示 *\
\* 查找犯规数据 * \
select d.name as Window , b.name as tab, a.name ,a.isdisplayed, c.accesslevel
from ad_field a
inner join ad_tab b on a.ad_tab_id=b.ad_tab_id
inner join ad_table c on b.ad_table_id=c.ad_table_id
INNER JOIN ad_window d on d.ad_window_id=b.ad_window_id
where
a.name = 'Client' and a.isdisplayed='Y' AND
b.isactive='Y' AND c.isactive='Y' and d.isactive='Y' and
c.accesslevel ~ '1|2|3' and d.name !~'Client|ASP'
order by 1,2,5
\* 对于访问级别System、System+client,All ,字段client必须显示 *\
\* 例外:翻译tab都不使用client字段 *\
\* 查找犯规数据 * \
select d.name as Window , b.name as tab, a.name ,a.isdisplayed, c.accesslevel
from ad_field a
inner join ad_tab b on a.ad_tab_id=b.ad_tab_id
inner join ad_table c on b.ad_table_id=c.ad_table_id
INNER JOIN ad_window d on d.ad_window_id=b.ad_window_id
where
a.name = 'Client' and a.isdisplayed='N' AND
b.isactive='Y' AND c.isactive='Y' and d.isactive='Y' and
c.accesslevel ~ '4|6|7' and b.name !~'Translat'
order by 5,1
这4条数据的默认的accesslevel不对
Import Account,Import Account,Client,N,6
Import Currency Rate,Import Currency Rate,Client,N,6
Asset,Asset Balances,Client,N,7
Asset,Asset History,Client,N,7
window布局
CREATE TABLE t_pep AS
SELECT
ad_tab_id,
ad_field_id,
ad_column_id,
seqno,
isdisplayed,
ad_fieldgroup_id,
xposition,
columnspan,
numlines,
EntityType,
ad_field_uu
FROM ad_field
WHERE EntityType NOT in ('PEP01','U') /* 只导出系统默认字段 */
AND isdisplayed ='Y' /* 只导出可视字段 */
ORDER BY 2 ;
pg_dump -U postgres -t t_pep idempiere > c:\a.sql
psql -d idempiere -U postgres -f c:\a.sql
/* 更新目标字段的显示状态 */
/* 模板不要的字段,你也不要,比如某些ad_client_id字段就去掉了 */
/* 如果你要,逻辑判断不出来,模板也没有正确的顺序值 */
/* 这种情况不多,你可以事先select看下结果 */
UPDATE ad_field
SET
isdisplayed='N'
FROM t_pep b
WHERE ad_field_uu=b.ad_field_uu
AND b.isdisplayed='N' AND isdisplayed='Y';
/* 更新可显示字段的布局值 */
/* 模板要的字段,更新到你的字段。*/
/* 你的自定义字段,模板没有,继续保留原值 */
/* 你去掉的字段,继续去掉,没有更新 */
UPDATE ad_field
SET
seqno=b.seqno,
isdisplayed=b.isdisplayed,
ad_fieldgroup_id=b.ad_fieldgroup_id,
xposition=b.xposition,
columnspan=b.columnspan,
numlines=b.numlines
FROM t_pep b
WHERE ad_field_uu=b.ad_field_uu AND isdisplayed='Y'
AND isactive='Y' ;
/* 你不要的字段,没有动,继续不要 */
/* 更新默认图片的css样式,AD_StyleLine_ID=200000 */
UPDATE ad_styleline
SET
inlinestyle='width: 200px; height: 200px; position: absolute; left: 200px;'
WHERE ad_styleline_UU='ed12951e-c319-4242-9f76-e53709e1d53b' ;
DROP TABLE t_pep;